package assignment10;

import java.io.*;   

class FileWrite {
  public static void main ( String[] args ) throws IOException {  
     String fileName = "G:\\Users\\IOtest\\憨批.txt"; 
     try {
         FileWriter writer = new FileWriter(fileName, false);
         writer.write( "哈哈哈憨批\n"); 
         writer.write( "六一儿童节快乐\n");
         writer.close(); 		
	} catch (IOException e) {
		// TODO: handle exception
		throw e;
	}
  }
}